{
  "name": "Config Compliance and Remediation - Parent",
  "tasks": {
    "3649": {
      "name": "query",
      "summary": "Query scorePass",
      "description": "Query data using a dot/bracket notation string and a matching key/value pair.",
      "location": "Application",
      "locationType": null,
      "app": "WorkFlowEngine",
      "displayName": "WorkFlowEngine",
      "type": "operation",
      "variables": {
        "incoming": {
          "pass_on_null": false,
          "query": "scorePass",
          "obj": "$var.406b.job_details"
        },
        "outgoing": {
          "return_data": null
        },
        "error": ""
      },
      "deprecated": false,
      "matched": [
        {
          "key": "name",
          "highlightString": "<span class='highlight-string'>query</span>"
        },
        {
          "key": "summary",
          "highlightString": "<span class='highlight-string'>Query</span> Data Using 'json-query' Format"
        },
        {
          "key": "description",
          "highlightString": "<span class='highlight-string'>Query</span> data using a dot/bracket notation string and a matching key/value pair."
        }
      ],
      "groups": [],
      "x": 0.5181159420289855,
      "y": 0.2482394366197183,
      "scheduled": false
    },
    "5463": {
      "name": "ViewData",
      "summary": "View Data",
      "description": "View data in a pretty format",
      "location": "Application",
      "app": "WorkFlowEngine",
      "displayName": "Tools",
      "type": "manual",
      "variables": {
        "incoming": {
          "header": "Remediation Results",
          "message": "",
          "body": "$var.7bbe.output",
          "variables": {},
          "btn_success": "Finish",
          "btn_failure": ""
        },
        "outgoing": {},
        "error": "",
        "decorators": []
      },
      "view": "/workflow_engine/task/ViewData",
      "deprecated": false,
      "matched": [
        {
          "key": "name",
          "highlightString": "<span class='highlight-string'>ViewDa</span>ta"
        }
      ],
      "groups": [],
      "x": 0.7833333333333333,
      "y": 0.08274647887323944,
      "scheduled": false
    },
    "5636": {
      "name": "query",
      "summary": "Query Tree Id",
      "description": "Query data using a dot/bracket notation string and a matching key/value pair.",
      "location": "Application",
      "locationType": null,
      "app": "WorkFlowEngine",
      "displayName": "WorkFlowEngine",
      "type": "operation",
      "variables": {
        "incoming": {
          "pass_on_null": false,
          "query": "treeId",
          "obj": "$var.a61d.job_details"
        },
        "outgoing": {
          "return_data": "$var.job.treeId"
        },
        "error": ""
      },
      "deprecated": false,
      "matched": [
        {
          "key": "name",
          "highlightString": "<span class='highlight-string'>quer</span>y"
        },
        {
          "key": "summary",
          "highlightString": "<span class='highlight-string'>Quer</span>y Data Using 'json-query' Format"
        },
        {
          "key": "description",
          "highlightString": "<span class='highlight-string'>Quer</span>y data using a dot/bracket notation string and a matching key/value pair."
        }
      ],
      "groups": [],
      "x": -0.0236842105263158,
      "y": 0.489908256880734,
      "scheduled": false
    },
    "9666": {
      "name": "query",
      "summary": "Query Compliance Reports Array",
      "description": "Query data using a dot/bracket notation string and a matching key/value pair.",
      "location": "Application",
      "locationType": null,
      "app": "WorkFlowEngine",
      "displayName": "WorkFlowEngine",
      "type": "operation",
      "variables": {
        "incoming": {
          "pass_on_null": true,
          "query": "reports",
          "obj": "$var.ff62.runComplianceBatchResult"
        },
        "outgoing": {
          "return_data": null
        },
        "error": ""
      },
      "deprecated": false,
      "matched": [
        {
          "key": "name",
          "highlightString": "<span class='highlight-string'>query</span>"
        },
        {
          "key": "summary",
          "highlightString": "<span class='highlight-string'>Query</span> Data Using 'json-query' Format"
        },
        {
          "key": "description",
          "highlightString": "<span class='highlight-string'>Query</span> data using a dot/bracket notation string and a matching key/value pair."
        }
      ],
      "groups": [],
      "x": 0.20434782608695654,
      "y": 0.3485915492957746,
      "scheduled": false
    },
    "workflow_start": {
      "name": "workflow_start",
      "groups": [],
      "x": -0.4072463768115942,
      "y": 0.34330985915492956,
      "summary": "workflow_start",
      "description": "workflow_start"
    },
    "workflow_end": {
      "name": "workflow_end",
      "groups": [],
      "x": 0.9050724637681159,
      "y": 0.34330985915492956,
      "summary": "workflow_end",
      "description": "workflow_end"
    },
    "b18f": {
      "name": "query",
      "summary": "Query Name",
      "description": "query name from incoming vars",
      "location": "Application",
      "locationType": null,
      "app": "WorkFlowEngine",
      "displayName": "WorkFlowEngine",
      "type": "operation",
      "variables": {
        "incoming": {
          "pass_on_null": false,
          "query": "configurationTree",
          "obj": "$var.job.formData"
        },
        "outgoing": {
          "return_data": null
        },
        "error": ""
      },
      "deprecated": false,
      "matched": [
        {
          "key": "name",
          "highlightString": "<span class='highlight-string'>query</span>"
        },
        {
          "key": "summary",
          "highlightString": "<span class='highlight-string'>Query</span> Data Using 'json-query' Format"
        },
        {
          "key": "description",
          "highlightString": "<span class='highlight-string'>Query</span> data using a dot/bracket notation string and a matching key/value pair."
        }
      ],
      "groups": [],
      "x": -0.322463768115942,
      "y": 0.352112676056338,
      "scheduled": false
    },
    "ff62": {
      "name": "runComplianceForTree",
      "summary": "Run Compliance Reports (Tree)",
      "description": "Begin a compliance report run for a Golden Config tree.",
      "location": "Application",
      "locationType": null,
      "app": "ConfigurationManager",
      "displayName": "ConfigurationManager",
      "type": "automatic",
      "variables": {
        "incoming": {
          "treeId": "$var.job.treeId",
          "version": "$var.job.treeVersions",
          "variables": "",
          "grading": ""
        },
        "outgoing": {
          "runComplianceBatchResult": null
        },
        "error": ""
      },
      "deprecated": false,
      "matched": [
        {
          "key": "name",
          "highlightString": "<span class='highlight-string'>runCompli</span>anceForTree"
        }
      ],
      "groups": [],
      "actor": "Pronghorn",
      "x": 0.09710144927536232,
      "y": 0.3362676056338028,
      "scheduled": false
    },
    "fe34": {
      "name": "merge",
      "summary": "Merge Data",
      "description": "Merge data into a single object",
      "location": "Application",
      "locationType": null,
      "app": "WorkFlowEngine",
      "displayName": "WorkFlowEngine",
      "type": "operation",
      "variables": {
        "incoming": {
          "data_to_merge": [
            {
              "key": "scorePass",
              "value": {
                "task": "3649",
                "variable": "return_data"
              }
            },
            {
              "key": "scoreFail",
              "value": {
                "task": "92c9",
                "variable": "return_data"
              }
            }
          ]
        },
        "outgoing": {
          "merged_object": null
        }
      },
      "deprecated": false,
      "matched": [
        {
          "key": "name",
          "highlightString": "<span class='highlight-string'>merge</span>"
        },
        {
          "key": "summary",
          "highlightString": "<span class='highlight-string'>Merge</span> Data"
        },
        {
          "key": "description",
          "highlightString": "<span class='highlight-string'>Merge</span> data into a single object"
        }
      ],
      "groups": [],
      "x": 0.591304347826087,
      "y": 0.32922535211267606
    },
    "7bbe": {
      "name": "makeData",
      "summary": "Make Data",
      "description": "Make Data",
      "location": "Application",
      "locationType": null,
      "app": "WorkFlowEngine",
      "displayName": "Tools",
      "type": "automatic",
      "variables": {
        "incoming": {
          "input": "The following devices were remediated successfully: <br><!scorePass!><br><br>The following devices were not remediated: <br><!scoreFail!><br><br>",
          "outputType": "string",
          "variables": "$var.fe34.merged_object"
        },
        "outgoing": {
          "output": null
        },
        "error": ""
      },
      "deprecated": false,
      "matched": [
        {
          "key": "name",
          "highlightString": "<span class='highlight-string'>make</span>Data"
        },
        {
          "key": "summary",
          "highlightString": "<span class='highlight-string'>Make</span> Data"
        },
        {
          "key": "description",
          "highlightString": "<span class='highlight-string'>Make</span> Data"
        }
      ],
      "groups": [],
      "actor": "Pronghorn",
      "x": 0.6695652173913044,
      "y": 0.3345070422535211,
      "scheduled": false
    },
    "2dfc": {
      "name": "evaluation",
      "summary": "Run Evaluation Task",
      "description": "Run an evaluation",
      "location": "Application",
      "locationType": null,
      "app": "WorkFlowEngine",
      "displayName": "WorkFlowEngine",
      "type": "operation",
      "variables": {
        "incoming": {
          "all_true_flag": false,
          "evaluation_groups": [
            {
              "all_true_flag": false,
              "evaluations": [
                {
                  "query": "mode",
                  "operand_1": {
                    "variable": "formData",
                    "task": "job"
                  },
                  "operator": "==",
                  "operand_2": {
                    "variable": "Zero Touch",
                    "task": "static"
                  }
                }
              ]
            }
          ]
        },
        "outgoing": {
          "return_value": null
        }
      },
      "deprecated": false,
      "matched": [
        {
          "key": "name",
          "highlightString": "<span class='highlight-string'>eva</span>luation"
        },
        {
          "key": "summary",
          "highlightString": "Run <span class='highlight-string'>Eva</span>luation Task"
        },
        {
          "key": "description",
          "highlightString": "Run an <span class='highlight-string'>eva</span>luation"
        }
      ],
      "groups": [],
      "x": 0.7927536231884058,
      "y": 0.323943661971831
    },
    "a61d": {
      "name": "childJob",
      "summary": "Run Tree ID Flow",
      "description": "Run a child Job inside a Workflow",
      "location": "Application",
      "locationType": null,
      "app": "WorkFlowEngine",
      "displayName": "WorkFlowEngine",
      "type": "operation",
      "variables": {
        "incoming": {
          "task": "",
          "workflow": "Config Compliance and Remediation - Find Tree ID",
          "variables": {
            "treeName": {
              "variable": "",
              "task": "b18f",
              "value": "return_data"
            }
          },
          "data_array": "",
          "transformation": "",
          "loopType": ""
        },
        "outgoing": {
          "job_details": null
        }
      },
      "deprecated": false,
      "matched": [
        {
          "key": "name",
          "highlightString": "<span class='highlight-string'>child</span>Job"
        },
        {
          "key": "summary",
          "highlightString": "Run <span class='highlight-string'>Child</span> Job"
        },
        {
          "key": "description",
          "highlightString": "Run a <span class='highlight-string'>child</span> Job inside a Workflow"
        }
      ],
      "groups": [],
      "actor": "job",
      "x": -0.17681159420289855,
      "y": 0.3485915492957746
    },
    "f2d0": {
      "name": "query",
      "summary": "Query Tree Version",
      "description": "Query data using a dot/bracket notation string and a matching key/value pair.",
      "location": "Application",
      "locationType": null,
      "app": "WorkFlowEngine",
      "displayName": "WorkFlowEngine",
      "type": "operation",
      "variables": {
        "incoming": {
          "pass_on_null": false,
          "query": "treeVersions[0]",
          "obj": "$var.a61d.job_details"
        },
        "outgoing": {
          "return_data": "$var.job.treeVersions"
        },
        "error": ""
      },
      "deprecated": false,
      "matched": [
        {
          "key": "name",
          "highlightString": "<span class='highlight-string'>quer</span>y"
        },
        {
          "key": "summary",
          "highlightString": "<span class='highlight-string'>Quer</span>y Data Using 'json-query' Format"
        },
        {
          "key": "description",
          "highlightString": "<span class='highlight-string'>Quer</span>y data using a dot/bracket notation string and a matching key/value pair."
        }
      ],
      "groups": [],
      "x": -0.0298245614035088,
      "y": 0.238532110091743,
      "scheduled": false
    },
    "92c9": {
      "name": "query",
      "summary": "Query scoreFail",
      "description": "Query data using a dot/bracket notation string and a matching key/value pair.",
      "location": "Application",
      "locationType": null,
      "app": "WorkFlowEngine",
      "displayName": "WorkFlowEngine",
      "type": "operation",
      "variables": {
        "incoming": {
          "pass_on_null": false,
          "query": "scoreFail",
          "obj": "$var.406b.job_details"
        },
        "outgoing": {
          "return_data": null
        },
        "error": ""
      },
      "deprecated": false,
      "matched": [
        {
          "key": "name",
          "highlightString": "<span class='highlight-string'>query</span>"
        },
        {
          "key": "summary",
          "highlightString": "<span class='highlight-string'>Query</span> Data Using 'json-query' Format"
        },
        {
          "key": "description",
          "highlightString": "<span class='highlight-string'>Query</span> data using a dot/bracket notation string and a matching key/value pair."
        }
      ],
      "groups": [],
      "x": 0.5217391304347826,
      "y": 0.4454225352112676,
      "scheduled": false
    },
    "406b": {
      "name": "childJob",
      "summary": "Run Remediation Flow",
      "description": "Run a child Job inside a Workflow",
      "location": "Application",
      "locationType": null,
      "app": "WorkFlowEngine",
      "displayName": "WorkFlowEngine",
      "type": "operation",
      "variables": {
        "incoming": {
          "task": "",
          "workflow": "Config Compliance and Remediation - Remediate",
          "variables": {
            "treeId": {
              "variable": "",
              "task": "5636",
              "value": "return_data"
            },
            "treeVersion": {
              "variable": "",
              "task": "f2d0",
              "value": "return_data"
            },
            "complianceReportsArray": {
              "variable": "",
              "task": "9666",
              "value": "return_data"
            },
            "formData": {
              "variable": "",
              "task": "job",
              "value": "formData"
            }
          },
          "data_array": "",
          "transformation": "",
          "loopType": ""
        },
        "outgoing": {
          "job_details": null
        }
      },
      "deprecated": false,
      "matched": [
        {
          "key": "name",
          "highlightString": "<span class='highlight-string'>child</span>Job"
        },
        {
          "key": "summary",
          "highlightString": "Run <span class='highlight-string'>Child</span> Job"
        },
        {
          "key": "description",
          "highlightString": "Run a <span class='highlight-string'>child</span> Job inside a Workflow"
        }
      ],
      "groups": [],
      "actor": "job",
      "x": 0.3746376811594203,
      "y": 0.3503521126760563
    }
  },
  "transitions": {
    "3649": {
      "fe34": {
        "type": "standard",
        "state": "success"
      }
    },
    "5463": {
      "workflow_end": {
        "type": "standard",
        "state": "success"
      }
    },
    "5617": {},
    "5636": {
      "ff62": {
        "type": "standard",
        "state": "success"
      }
    },
    "6047": {},
    "9666": {
      "406b": {
        "type": "standard",
        "state": "success"
      }
    },
    "workflow_start": {
      "b18f": {
        "type": "standard",
        "state": "success"
      }
    },
    "workflow_end": {},
    "b18f": {
      "a61d": {
        "type": "standard",
        "state": "success"
      }
    },
    "f128": {},
    "777e": {},
    "ff62": {
      "9666": {
        "type": "standard",
        "state": "success"
      }
    },
    "cc1b": {},
    "d261": {},
    "83d7": {},
    "fe34": {
      "7bbe": {
        "type": "standard",
        "state": "success"
      }
    },
    "7bbe": {
      "2dfc": {
        "type": "standard",
        "state": "success"
      }
    },
    "2dfc": {
      "5463": {
        "type": "standard",
        "state": "failure"
      },
      "workflow_end": {
        "type": "standard",
        "state": "success"
      }
    },
    "a143": {},
    "a61d": {
      "5636": {
        "type": "standard",
        "state": "success"
      },
      "f2d0": {
        "type": "standard",
        "state": "success"
      }
    },
    "f2d0": {
      "ff62": {
        "type": "standard",
        "state": "success"
      }
    },
    "92c9": {
      "fe34": {
        "type": "standard",
        "state": "success"
      }
    },
    "406b": {
      "3649": {
        "type": "standard",
        "state": "success"
      },
      "92c9": {
        "type": "standard",
        "state": "success"
      }
    }
  },
  "font_size": 12,
  "created": "2020-02-17T19:36:47.065Z",
  "created_by": {
    "provenance": "Local AAA",
    "username": "admin@pronghorn",
    "firstname": "admin",
    "inactive": true,
    "email": ""
  },
  "createdVersion": "4.5.3-2019.2.9.0",
  "last_updated": "2022-01-06T18:29:23.929Z",
  "last_updated_by": {
    "provenance": "Itential-Okta",
    "username": "kay.wolfe@itential.com",
    "firstname": "Kay",
    "inactive": false,
    "email": ""
  },
  "lastUpdatedVersion": "5.44.8-2021.2.0",
  "type": "automation",
  "description": null,
  "canvasVersion": 1,
  "inputSchema": {
    "type": "object",
    "properties": {
      "formData": {
        "type": "object",
        "examples": [
          {
            "name": "value"
          }
        ]
      }
    },
    "required": [
      "formData"
    ]
  },
  "outputSchema": {
    "type": "object",
    "properties": {
      "formData": {
        "type": "object",
        "examples": [
          {
            "name": "value"
          }
        ]
      },
      "_id": {
        "type": "string",
        "pattern": "^[0-9a-f]{24}$"
      },
      "initiator": {
        "type": "string"
      },
      "treeId": {
        "type": [
          "string",
          "number",
          "object",
          "integer",
          "array",
          "boolean",
          "null"
        ],
        "examples": [
          "value"
        ]
      },
      "treeVersions": {
        "type": [
          "string",
          "number",
          "object",
          "integer",
          "array",
          "boolean",
          "null"
        ],
        "examples": [
          "value"
        ]
      }
    }
  },
  "tags": [],
  "groups": [],
  "migrationVersion": 1
}
